﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TXTD.Admin.Data.Entitys.System;
using TXTD.Admin.Model.Core;
using TXTD.Admin.Model.Modules;
using TXTD.Admin.Model.Modules.System;
using TXTD.Admin.Model.Paging;

namespace TXTD.Admin.Interface.System
{
    public interface ISysMenuService : IBaseService<SysMenu>
    {
        /// <summary>
        /// 查询数据
        /// </summary>
        /// <returns></returns>
        List<SysMenuModel> GetMenuList();

        /// <summary>
        /// 添加数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Add(SysMenu model);
        /// <summary>
        /// 修改数据
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Update(SysMenu model);
        /// <summary>
        /// 删除数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int DeleteById(string id);
        /// <summary>
        /// 获取登录用户菜单列表
        /// </summary>
        /// <returns></returns>
        List<SysMenuModel> GetLoginUserMenuList();
    }
}
